import React, { Component } from 'react';
import { ConfigProvider } from 'antd-mobile';
import zhCN from 'antd-mobile/es/locales/zh-CN';
import Header from './components/Header/Header';
import Footer from './components/Footer/Footer';
import AppRouter from './router';
import styles from './App.module.less';

class App extends Component {
  render() {
    return (
      <ConfigProvider locale={zhCN}>
        <div className={styles.app}>
          <Header />
          <main className={styles.appMain}>
            <AppRouter />
          </main>
          <Footer />
        </div>
      </ConfigProvider>
    );
  }
}

export default App;
